package com.zzyl.nursing.task;

import com.zzyl.nursing.service.IReservationService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 预约状态定时任务
 *
 * @Author mr.li
 * @Date 2025/8/2 17:18
 */
@Component
@Slf4j
public class ReservationTask {

    @Autowired
    private IReservationService reservationService;
    /**
     * 定时更新预约的时间
     */
    public void  updateReservationTimeStatus(){
        reservationService.updateReservationStatus();
        log.info("更新预约时间定时任务成功！！！");
    }
}
